<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<div class="data_list">
	<div class="data_list_title">
		<img alt="" src="/static/images/search_icon.png"/>搜索&nbsp;
		<font>${keyword }</font>&nbsp;的结果&nbsp;(总共搜索到&nbsp;${resultTotal }&nbsp;条记录)
	</div>
	
	<div class="datas search">
		<ul>
			<c:choose>
				<c:when test="${blogList.size()==0 }">
					<div align="center" style="padding-top:20px">未查询到结果，请换个关键字试试看！</div>
				</c:when>
				<c:otherwise> 
				
					<c:forEach var="blog" items="${blogList }">
						<li style="margin-bottom:20px">
							<span class="title">
								<a href="${pageContext.request.contextPath }/blog/articles/${blog.id}.html" target="_blank">${blog.title }</a>
							</span>
							<span class="summary">摘要：${blog.content }...</span>
							<span class="link">
								<a href="${pageContext.request.contextPath }/blog/articles/${blog.id}.html">
									http://localhost:8080/BlogT/blog/articles/${blog.id}.html
								</a>
								发布日期：${blog.releaseDateStr }
							
							</span>
						</li>
					</c:forEach>
				</c:otherwise>
			</c:choose>
		</ul>
	</div>
	${pageCode}
</div>
</body>
</html>